import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import product from "./modules/product";
import news from "./modules/news";
import upload from "./modules/upload";
import cate from "./modules/cate";
import comment from "./modules/comment";
import login from "./modules/login";
import getters from "./getters";


Vue.use(Vuex);


export default new Vuex.Store({
  modules: {
    user,
    cate,
    product,
    news,
    upload,
    comment,
    login
  },
  getters
});